// import './assets/main.css'
// 引入初始化样式文件
import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import {lazyPlugin} from "@/directives/index"
// 引入全局组件插件
import { componentPlugin } from '@/components'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// import {getCategoryAPI} from "@/apis/test-axios"
// getCategoryAPI().then((res) => {
//     console.log(res)
// });


const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)
app.use(componentPlugin)
app.use(pinia)
app.use(lazyPlugin)
app.use(router)

app.mount('#app')
